package com.trivera.adhoc;

public class Employee extends TaxableEntity{
	
	// add constructors, getter/setters, etc...
	
	
	
	public static final String EMPLOYEE_TAXID_REGEX = "^\\d\\d\\d-\\d\\d-\\d\\d\\d\\d$";

	public Employee(String name, String taxId) {
		super(name, taxId);
	}

	public float pay(float amount)
	{
		System.out.println("Paying Employee " + getName());
		return amount * .85f;

	}

	@Override
	protected String getTaxIdRegex() {
		return EMPLOYEE_TAXID_REGEX;
	}

	
	
	
}
